//
//  UIViewController+EJModelPresent.h
//  EJiangOSbeta
//
//  Created by 刘爽 on 2019/9/20.
//  Copyright © 2019 Joyssom. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIViewController (EJModelPresent)

/// 自定义转场动画的模态视图
/// @param viewControllerToPresent <#viewControllerToPresent description#>
/// @param bgTap 点击背景是否dismiss
/// @param flag 是否动画，默认转场动画时间0.35s
/// @param completion <#completion description#>
- (void)ej_modalPresentViewController:(UIViewController *)viewControllerToPresent bgTap:(BOOL)bgTap animated:(BOOL)flag completion:(void (^__nullable)(void))completion;

/// 自定义转场动画的模态视图
/// @param viewControllerToPresent <#viewControllerToPresent description#>
/// @param bgTap 点击背景是否dismiss
/// @param animatedTime 默认进行转场动画，自定义转场动画时间
/// @param completion <#completion description#>
- (void)ej_modalPresentViewController:(UIViewController *)viewControllerToPresent bgTap:(BOOL)bgTap animatedTime:(CGFloat)animatedTime completion:(void (^__nullable)(void))completion;

- (void)ej_showConfirmAlertWithTitle:(NSString *)title message:(NSString *)message handler:(void (^__nullable)(void))handler;

- (void)ej_showConfirmAlert:(NSString *)message;

@end

NS_ASSUME_NONNULL_END
